//声明一个变量a，同时指定类型为number
let a: number = 10
a = 20
a = 30
let b: object = []
function sum(num1: number, num2: number) {
  return num1 + num2
}
sum(123, 456)
//可以给变量、形参规定数值类型
